/*
 * @Author: zjf
 * @Date: 2023-11-29 21:36:15
 * @LastEditors: zjf
 * @LastEditTime: 2023-12-01 11:34:46
 * @Description: 工程建设许可阶段3 建设用地规划许可证核发7
 */
// 接口地址
export const api = window.$crud("land/planning/license");
// 阶段code
export const stageCode = 3;
// 业务code
export const businessCode = 7;

export const formColmuns = [
  {
    label: "项目名称",
    prop: "projectName",
    dataType: "input",
    isNotAutoWrap: true,
    disabled: true,
  },
  // {
  //   label: "项目编码",
  //   prop: "projectCode",
  //   dataType: "input",
  //   isNotAutoWrap: true,
  //   disabled: true,
  // },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "文号",
    prop: "documentNumber",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "核发时间",
    prop: "approvalTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "用地面积",
    prop: "useArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "平方米",
  },
  {
    label: "土地用途",
    prop: "landNature",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
];

export const tableColmuns = [
  // {
  //   label: '项目编码',
  //   prop: 'projectCode',
  //   minWidth: 140,
  //   dataType: 'input',
  //   isNotAutoWrap: true,
  // },
  {
    label: "项目名称",
    prop: "projectName",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "文号",
    prop: "documentNumber",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "核发时间",
    prop: "approvalTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "用地面积",
    prop: "useArea",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "平方米",
  },
  {
    label: "土地用途",
    prop: "landNature",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "更新时间",
    prop: "modifyTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd HH:mm:ss",
  },
];

export const formData = {
  projectName: "",     // 项目名称
  projectCode: "",     // 项目编码
  stageProgress: "",   // 阶段进展

  documentNumber: "", // 文号
  approvalTime: "", // 核发时间
  useArea: "", // 实际用地面积
  landNature: "" // 用地性质土地用途
};

export const rules = {

};

let config = {
  api: api,
  stageCode: stageCode,
  businessCode: businessCode,
  formColmuns: formColmuns,
  tableColmuns: tableColmuns,
  formData: formData,
  rules: rules,
};

export default config;